package com.ruibang.glass.produce.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author: songJinKang
 * @CreateTime: 2024-02-05  15:18
 * @Description: TODO:测厚规则实体
 * @Version: 1.0
 */

@Data
@TableName("g_produce_thickness_trend_rule")
public class ThicknessTrendRule {

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @ApiModelProperty("规则名称")
    @NotBlank(message = "请输入规则名称")
    private String ruleName;
    @ApiModelProperty("极值")
    @NotNull(message = "请输入极值范围")
//    @Pattern(regexp = RegexpUtils.NON_ZERO_NEGATIVE_INTEGERS_REGEXP, message = "请输入正整数")
    private Integer peak;
    @ApiModelProperty("极值逻辑符号")
    @NotBlank(message = "请选着极值逻辑符号")
    private String peakLogicalSymbol;

    @ApiModelProperty("最大平均值")
    @NotNull(message = "请输入平均值范围")
//    @Pattern(regexp = RegexpUtils.NON_ZERO_NEGATIVE_INTEGERS_REGEXP, message = "请输入正整数")
    private Integer maxAvg;
    @ApiModelProperty("最小平均值")
    @NotNull(message = "请输入平均值范围")
//    @Pattern(regexp = RegexpUtils.NON_ZERO_NEGATIVE_INTEGERS_REGEXP, message = "请输入正整数")
    private Integer minAvg;


    @ApiModelProperty("最小值上限")
    @NotNull(message = "请输入最小值范围")
//    @Pattern(regexp = RegexpUtils.NON_ZERO_NEGATIVE_INTEGERS_REGEXP, message = "请输入正整数")
    private Integer minUp;
    @ApiModelProperty("最小值下限")
    @NotNull(message = "请输入最小值范围")
//    @Pattern(regexp = RegexpUtils.NON_ZERO_NEGATIVE_INTEGERS_REGEXP, message = "请输入正整数")
    private Integer minDown;


    @ApiModelProperty("最大值上限")
//    @Pattern(regexp = RegexpUtils.NON_ZERO_NEGATIVE_INTEGERS_REGEXP, message = "请输入正整数")
    @NotNull(message = "请输入最大值范围")
    private Integer maxUp;
    @ApiModelProperty("最大值下限")
    @NotNull(message = "请输入最大值范围")
//    @Pattern(regexp = RegexpUtils.NON_ZERO_NEGATIVE_INTEGERS_REGEXP, message = "请输入正整数")
    private Integer maxDown;
}
